package com.jiwei.community.runner;

import com.jiwei.community.service.SensitiveService;
import com.jiwei.community.service.impl.RecommendServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * @author 季伟
 * @date 2024/4/7
 */
@Component
public class SystemRunner implements CommandLineRunner {
    @Autowired
    RecommendServiceImpl recommendService;
    @Autowired
    SensitiveService sensitiveService;
    @Override
    public void run(String... args) throws Exception {
        recommendService.cacheScoreList();
        recommendService.cacheSimilarUser();
        sensitiveService.refreshDFA();


    }
}
